package com.yanqu.road.entity.log.cross.xingyou;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_c_log_xing_you_energy", autoSave = true, desc = "行游山水-体力变更", dataUpload = true, eventName = "mouwater_power", uploadCk = true, isCross = true)
public class LogCrossXingYouEnergy extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(isIndex = true, desc = "分组id")
    private int groupId;
    @FieldTypeAnnotation(desc = "类型，1使用，2道具恢复，3自然恢复", dataAttribute = "mouwater_type")
    private int type;
    @FieldTypeAnnotation(desc = "队伍id", dataAttribute = "team_id")
    private int teamId;
    @FieldTypeAnnotation(desc = "变化数量", dataAttribute = "mouwater_change")
    private int changeCount;
    @FieldTypeAnnotation(desc = "变化后最新数量", dataAttribute = "mouwater_pow")
    private int newCount;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogCrossXingYouEnergy(long userId, int teamId, int activityId, int type, int changeCount, int newCount) {
        this.userId = userId;
        this.activityId = activityId;
        this.teamId = teamId;
        this.type = type;
        this.changeCount = changeCount;
        this.newCount = newCount;
        this.logTime = new Date();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getChangeCount() {
        return changeCount;
    }

    public void setChangeCount(int changeCount) {
        this.changeCount = changeCount;
    }

    public int getNewCount() {
        return newCount;
    }

    public void setNewCount(int newCount) {
        this.newCount = newCount;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        this.teamId = teamId;
    }
}
